<template>
  <div>
    <el-form ref="form" :model="form" :disabled="true" label-width="80px">
                      <el-form-item label="用户名" prop="username">
                        <el-input v-model="form.username" placeholder="请输入用户名" />
                      </el-form-item>
                      <el-form-item label="生日" prop="birthday">
                        <el-date-picker clearable
                                        v-model="form.birthday"
                                        type="date"
                                        value-format="yyyy-MM-dd"
                                        placeholder="请选择生日">
                        </el-date-picker>
                      </el-form-item>
                      <el-form-item label="地址" prop="address">
                        <el-input v-model="form.address" placeholder="请输入地址" />
                      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="cancel">取 消</el-button>
    </div>
  </div>
</template>

<script>
import EditMixin from "@/minixs/basic/edit"
import request from "@/utils/request";
export default {
  name: "detail",
  mixins:[EditMixin],
  data() {
    return {
      // 表单数据
      form: {
        id: null,
        climecode: null,
        climename: null,
        pcode: null,
        delFlag: null,
        createBy: null,
        updateBy: null,
        createTime: null,
        updateTime: null,
        remark: null
      },
    }
  },
  mounted() {
    request({
      url: '/demo/user' + this.id,
      method: 'get'
    }).then(res=>{
      this.form = res.data;
    })
  },
};
</script>
